package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;
import com.tanhua.model.mongo.CommentLike;

import java.util.List;

public interface CommentApi {

    List<Comment> findComments(String movementId, CommentType comment, Integer page, Integer pagesize);

    Integer save(Comment comment1);

    Boolean hasComment(String movementId, Long userId, CommentType like);

    Integer delete(Comment comment);

    List<Long> findUserIds(Long userId, CommentType commentType, Integer page, Integer pagesize);

    Boolean hasCommentLike(String commentId, Long userId);

    Integer saveCommentLike(CommentLike commentLike);

    Integer deleteCommentLike(CommentLike commentLike);
}